var newsTable;
function geturlRecordList() {
	getlist();
    if (typeof newsTable !== 'undefined') {
        newsTable.fnPageChange('first');
        return;
    }
    var i = 1;
    newsTable = $("#urlRecordList").DataTable({
        "sAjaxSource": _path + "/urlRecord/queryByPage",          
        "fnServerParams": function (aoData) {
            aoData.push(
                {"name": "url_host" ,"value":$("#url_host").val()},
                {"name": "user_ip" ,"value":$("#user_ip").val()},
                { "name": "fromDate", "value": $("#fromDate").val() },
                { "name": "toDate", "value": $("#toDate").val() }
            );
        },
        "sServerMethod": "POST",
        "sAjaxDataProp": "dataList",
        "fnCreatedRow": function () {
            i++;
        },
        "fnPreDrawCallback": function () {
            i = 1;
        },
        "aoColumns": [
            { "sTitle": "序号", "sWidth": "2%",
                "mData": function () {
                    return i;
                }
            },    
            { "sTitle": "id", "mData": "id", "sWidth": "10%" },
            { "sTitle": "ip", "mData": "user_ip", "sWidth": "10%" },
            { "sTitle": "domain", "mData": "url_host", "sWidth": "10%" },
            { "sTitle": "pathname", "mData": "url_get", "sWidth": "10%" },
            { "sTitle": "记录时间", "mData": "createTime", "sWidth": "10%" },
        ]
    });
   

}


